using UnityEngine;
using System.Collections;

public class ControlGroup : MonoBehaviour 
{
	private ArrayList units;
	
	void Start () 
	{
		units = new ArrayList();
	}
	
	public void Add(Unit unit)
	{
		units.Add(unit);
	}
	
	public void Clear()
	{
		foreach(Unit i in units)
		{
			i.Deselected();
		}
		units.Clear();
	}
	
	public void MoveAllUnits(Vector3 position)
	{
		foreach(Unit i in units)
		{
			i.MoveTo(position);
		}
	}
	
	void Update () 
	{
		
	}
}
